package com.weixing.mall.provider.model.dto.sys;

import com.weixing.mall.base.enums.IsEnableEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/7/24 16:00
 * @Modified By:
 */
@Data
@ApiModel(description = "数据字典")
public class SysDictDto {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "字典组")
    @NotNull(message = "字典组不能为空")
    @Length(max = 18, message = "长度超限")
    private String dictGroup;

    @ApiModelProperty(value = "字典组编码")
    @NotNull(message = "字典组编码不能为空")
    private String dictGroupCode;
    @ApiModelProperty(value = "字典值")
    @NotNull(message = "字典值不能为空")
    private Integer dictValue;

    @ApiModelProperty(value = "字典值描述")
    @NotNull(message = "字典值描述不能为空")
    private String dictValueDesp;
    @ApiModelProperty(value = "是否可用")
    @NotNull(message = "是否可用不能为空")
    private IsEnableEnum isEnable;
    @ApiModelProperty(value = "排序字段")
    @NotNull(message = "排序字段不能为空")
    private Integer orderBy;
    @ApiModelProperty(value = "备注")
    @NotNull(message = "备注不能为空")
    private String remark;
}
